package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.sql.Date;

/**
 * 学生Dto
 * Created by wyh on 2015/3/21.
 */
public class StudentDto {
    @NotNull
    @Min(value = 1, message = "学生ID不合法")
    private Long id; //ID

    @NotNull
    @Range(min = 0, max = 1, message = "性别不合法")
    private Integer sex; //性别

    @NotNull
    private Date birthDate; //出生年月

    @Size(max = 50, message = "电话长度不合法")
    private String phone; //电话

    @Size(max = 200, message = "头像地址长度不合法")
    private String userPhoto; //头像

    @Size(max = 60, message = "户籍长度不合法")
    private String address; //户籍所在地

    private String code; //学生编码
    private String name; //姓名
    private Date registerDate; //入学时间
    private String depart; //系部名称
    private String major; //专业名称
    private String classCode; //班级代码
    private String className;//班级名称
    private Long classId;//班级编码
    private String remark; //备注

    private String sessionId;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public Date getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    public String getDepart() {
        return depart;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getClassCode() {
        return classCode;
    }

    public void setClassCode(String classCode) {
        this.classCode = classCode;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }
}
